package com.game.main
{
	import mx.core.DragSource;

	public class GameUtilities
	{
		/**
		 * 背包中道具格子的最大堆叠数 
		 */		
		public static var MAX_PILE_NUM:int=20;
		
		/**
		 * 背包在主视图中的名称 
		 */		
		public static var BAG_VIEW:String="bagView";
		
		/**
		 * 种子商店道具买卖窗口在主视图中的名称 
		 */		
		public static var SEED_SHOPPING_VIEW:String="seedShoppingView";
		
		/**
		 * npc任务UI 
		 */		
		public static var NPC_MISSION_VIEW:String="npcMissionView";
		
		/**
		 * 任务描述UI 
		 */		
		public static var MISSION_DESCRIPTION_VIEW:String="missionDescriptionView";
		
		/**
		 * 玩家任务列表UI 
		 */		
		public static var AVATAR_MISSION_VIEW:String="avatarMissionView";
		
		/**
		 * 玩家任务描述UI 
		 */		
		public static var AVATAT_MISSION_DESCRIPTION_VIEW:String="avatarMissionDescriptionView";
		
		/**
		 * 放弃任务提示框UI 
		 */		
		public static var DROP_MISSION_VIEW:String="dropMissionView";
		
		/**
		 * NPC聊天UI 
		 */		
		public static var NPC_CHAT_VIEW:String="npcChatView";
		
		/**
		 * 玩家交易邀请UI 
		 */		
		public static var BUSINESS_INVITED_VIEW:String="businessInvitedView";
		
		/**
		 * 玩家交易UI 
		 */		
		public static var BUSINESS_EXCHANGE_VIEW:String="businessExchagneView";
		
		/**
		 * 玩家交易失败提示UI 
		 */		
		public static var BUSINESS_FAILEDALERT_VIEW:String="businessFailedAlertView";
		
		/**
		 * 本地缓存数据索引名 
		 */		
		public static var LOCAL_SHARED_DATA:String="localSharedData";
		
		public static var DRAG_BAGITEM:String="bagItem";
		
		public static var DRAG_TO_BUSINESS:String="dragBagItemToBusinessView";
		
		public static var DRAG_ITEM_FROM_BUSINESS:String="dragItemFromBusinessView";
		
		public static var DRAG_BAGITEM_NAME:String="dragBagItemName";
		
		public static var DRAG_BUSINESSITEM_NAME:String="dragBusinessItemName";
		
		public static function cleanUpDragSource(dragSrc:DragSource):void
		{
			for(var i:int=dragSrc.formats.length-1;i>=0;i--)
			{			
				dragSrc.formats.pop();
			}
		}
		
		
		public function GameUtilities()
		{
		}
	}
}